-- GENERATED SPELL FOR [Hive'Regal Spitfire] --


function spell0_11732(pUnit, Event) --@Corrosive Acid Spit,n/a--
pUnit:FullCastSpellOnTarget(21047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11732', 13000, 1)
end

function spell1_11732(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11732', 2336, 1)
end

function Sorts_11732(pUnit, Event)
local choix_sorts_11732 = math.random(0, 1)
if choix_sorts_11732 == 0 then
pUnit:RegisterEvent('spell0_11732', 1, 1)
end
if choix_sorts_11732 == 1 then
pUnit:RegisterEvent('spell1_11732', 1, 1)
end
end

function mob11732_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11732', math.random(1500, 3000), 1)
end

function mob11732_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11732_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11732_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11732, 1, 'mob11732_Action')
RegisterUnitEvent(11732, 2, 'mob11732_Leave')
RegisterUnitEvent(11732, 3, 'mob11732_Kill')
RegisterUnitEvent(11732, 4, 'mob11732_Die')
